package com.uit.project.bustrip.main;

import com.uit.project.bustrip.R;
import com.uit.project.bustrip.R.layout;
import com.uit.project.bustrip.R.menu;
import com.uit.project.bustrip.activity.GenericActivity;
import com.uit.project.bustrip.entity.User;

import android.os.Bundle;
import android.app.Activity;
import android.util.Log;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

public class UserList2 extends GenericActivity<User, Integer> {

	Button bt1;
	EditText editText;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_user_list2);
		bt1 = (Button) findViewById(R.id.button1);
		editText = (EditText) findViewById(R.id.editText1);
		bt1.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Log.i("UserList2 log", "sdghsdghjdgs");
				String text = editText.getText().toString();
				Toast.makeText(getApplicationContext(), "sdghsdghs=>" + text, Toast.LENGTH_LONG).show();
			}
		});
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.user_list2, menu);
		return true;
	}

}
